﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;
namespace BUS
{
    public class PhieuThueChiTietBUS
    {
        PhieuThueChiTietDAO dao = new PhieuThueChiTietDAO();
        public int ThemChiTietPhieuThueBUS(ListChiTietPhieuDTO dto)
        {
            PhieuThueChiTietDAO dao = new PhieuThueChiTietDAO();
            return dao.ThemChiTietPhieuThueDAO(dto);
        }
        public DataTable loadChiTietTheoMaPhieu(int maphieu)
        {
            
            return dao.loadChiTietTheoMaPhieu(maphieu);
        }
        public int XoaCT(int machitiet)
        {
            PhieuThueChiTietDAO dao = new PhieuThueChiTietDAO();
            return dao.XoaCT(machitiet);
        }
        public int SoluongKhachHang(int maphieu)
        {
            PhieuThueChiTietDAO dao = new PhieuThueChiTietDAO();
            return dao.SoluongKhach(maphieu);
             
        }
        public int TinhTienPhong(PhieuThueChiTietDTO PhieuThue)
        {
            PhieuThueChiTietDAO dao = new PhieuThueChiTietDAO();
            return dao.TinhTienPhong(PhieuThue);
        }

    }
}
